package com.ruoyi.schoolSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生签到管理对象 student_attendance
 * 
 * @author ruoyi
 * @date 2024-02-21
 */
public class StudentAttendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 出勤状态（迟到，正常，早退） */
    @Excel(name = "出勤状态", readConverterExp = "迟=到，正常，早退")
    private String attendanceType;

    /** 签到时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date signTime;

    /** 签到类型（签到，签退） */
    @Excel(name = "签到类型", readConverterExp = "签=到，签退")
    private Integer signType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setAttendanceType(String attendanceType) 
    {
        this.attendanceType = attendanceType;
    }

    public String getAttendanceType() 
    {
        return attendanceType;
    }
    public void setSignTime(Date signTime) 
    {
        this.signTime = signTime;
    }

    public Date getSignTime() 
    {
        return signTime;
    }
    public void setSignType(Integer signType) 
    {
        this.signType = signType;
    }

    public Integer getSignType() 
    {
        return signType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("attendanceType", getAttendanceType())
            .append("signTime", getSignTime())
            .append("signType", getSignType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
